package com.smartlifev30.baiwei.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.smartlifev30.R;
import com.smartlifev30.baiwei.bean.Scene;
import com.smartlifev30.baiwei.view.recyclerViewComponent.BaseAdapter;
import com.smartlifev30.baiwei.view.recyclerViewComponent.BaseViewHolder;

import java.util.ArrayList;

/**
 *
 * @author tys
 * @date 2018/8/17
 */

public class SceneAdapter extends BaseAdapter<Scene, SceneAdapter.ViewHolder> {


    public SceneAdapter(Context context, ArrayList<Scene> mData) {
        super(context, mData);
    }

    @NonNull
    @Override
    public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        return new ViewHolder(LayoutInflater.from(context).
                inflate(R.layout.scene_item, parent, false));
    }

    @Override
    public void onBindViewHolder(@NonNull ViewHolder holder, int position) {

    }

    class ViewHolder extends BaseViewHolder {
        ViewHolder(View itemView) {
            super(itemView);
            super.setItemClickListen(itemView, SceneAdapter.this);
        }
    }

    @Override
    public int getItemCount() {
        return 32;
    }
}
